/ Assembly List / LJCNetCommon / CodeTokenizer / IsDelimiters

Namespace - LJCNetCommon


Parameters
text - The text value.

Returns

True if a common delimiter, otherwise false.

Syntax

C#
public Boolean IsDelimiters(String text)

Check if the text contains a common delimiter. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " string text = \"DataValue\"";
tokenizer.SetTokens(text);
short tokenIndex = 2;
string token = tokenizer.GetToken(tokenIndex);
        
// Common Delimiters are: ':', '{', '}', '=' and '"'.
bool isCommonDelimiter = tokenizer.IsDelimiters(token);
// Value isCommonDelimiter = true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.